package com.slfx.idgen.server.controller;


import com.slfx.idgen.server.dto.GuidHolder;
import com.slfx.idgen.server.entity.Guid;
import com.slfx.idgen.server.service.IGuidService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author slfx
 * @since 2023-01-06
 */
@RestController
@RequestMapping("/guid")
public class GuidController {

    @Resource
    private IGuidService guidService;

    @PostMapping("/getGuid")
    public Long getGuid() {
        Long guid = guidService.getGuid();
        return guid;
    }

    @PostMapping("/getGuid2")
    public Long getGuid2() {
        Long guid2 = guidService.getGuid2();
        return guid2;
    }

    @PostMapping("/getGuid3")
    public Long getGuid3() {
        Long guid3 = guidService.getGuid3();
        return guid3;
    }
}
